package message;

import java.util.ArrayList;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

import entities.Account;

@XmlRootElement
public class BulkUpdateResponseMessage extends Message
{
	private static final long serialVersionUID = 1L;
	private ArrayList<Account> updatedAccounts;
	private ArrayList<Account> insertedAccounts;
	
	public ArrayList<Account> getUpdatedAccounts()
	{
		return updatedAccounts;
	}
	@XmlElementWrapper(name = "updated")
	@XmlElement(name = "account")
	public void setUpdatedAccounts(ArrayList<Account> updatedAccounts)
	{
		if (this.updatedAccounts == null)
			this.updatedAccounts = updatedAccounts;
	}
	public ArrayList<Account> getInsertedAccounts()
	{
		return insertedAccounts;
	}
	@XmlElementWrapper(name = "inserted")
	@XmlElement(name = "account")
	public void setInsertedAccounts(ArrayList<Account> insertedAccounts)
	{
		if (this.insertedAccounts == null)
			this.insertedAccounts = insertedAccounts;
	}

}
